/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucsur.libreriaelsaber.data;

/**
 *
 * @author Administrator
 */
public abstract class DAOFactory {
  
  public static final int TIPO_MYSQL = 1;
  public static final int TIPO_ORACLE = 2;
  public static final int TIPO_EXCEL = 3;
  public static final int TIPO_XML = 4;
  public static final int TIPO_TEXTO_PLANO = 5;
  public static final int TIPO_WEB_SERVICES = 6;
  
  public abstract UsuarioDAO getUsuarioData();
  
  public static DAOFactory getFactory(int tipoDao) {
    switch (tipoDao) {
      case TIPO_MYSQL:
        return new MySqlDAOFactory();
      default:
        return null;
    }
  }
  
}
